//************************************************ 
//  *Author：jxx
//  *QQ：283591387
//  *代码由框架生成,任何更改都可能导致被代码生成器覆盖
//  *业务请在q_serve_uppass.js中编写
//************************************************ 
export default function() {
	return {
		editFormFields: {"Voucher_sub":"","Sales_contract_voucher_sub":"","Client":"","Project_name":"","SN":"","Image":"","Attachment":""},
		editFormOptions: [{"title":"单据编码","field":"Voucher_sub"},
                               {"title":"合同编码","field":"Sales_contract_voucher_sub"},
                               // {"type":"group"},
                               {"key":"无条件客户","data":[],"title":"客户名称","required":true,"field":"Client","type":"select"},
                               {"title":"项目名称","required":true,"field":"Project_name"},
                               {"title":"SN编码","required":true,"field":"SN"},
                               // {"type":"group"},
                               {"title":"图片","field":"Image","type":"img"},
                               {"title":"附件","field":"Attachment","type":"file"}],
		searchFormFields: {"Voucher_sub":"","Sales_contract_voucher_sub":"","Client":"","Project_name":"","Image":"","Attachment":""},
		searchFormOptions: [{"title":"图片","field":"Image"},{"title":"附件","field":"Attachment"},{"type":"group"},{"title":"单据编码","field":"Voucher_sub","type":"like"},{"title":"合同编码","field":"Sales_contract_voucher_sub","type":"like"},{"key":"无条件客户","data":[],"title":"客户名称","field":"Client","type":"like"},{"title":"项目名称","field":"Project_name","type":"like"}],
		columns: [{field:'Voucher_sub',title:'单据编码',type:'string',link:true},
                       {field:'Sales_contract_voucher_sub',title:'合同编码',type:'string'},
                       {field:'Client',title:'客户名称',type:'string',bind:{ key:'无条件客户',data:[]}},
                       {field:'Project_name',title:'项目名称',type:'string'},
                       {field:'SN',title:'SN编码',type:'string'},
					   {field:'Image',title:'图片',type:'img'},
					   {field:'Attachment',title:'附件',type:'file'}],
		table: {
			key: 'id',
			footer: "Foots",
			cnName: '升级密码生成',
			name: 'q_serve_uppass',
			url: "/q_serve_uppass/",
			sortName: "Voucher_sub"
		}
	}
}
